#ifndef _SDLJEU_H
#define _SDLJEU_H

#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_mixer.h>
#include "Jeu.h"


typedef struct
{
	Jeu jeu;
	SDL_Surface* surface_ecran;
	SDL_Surface* surface_vaisseauJ;
	SDL_Surface* surface_vaisseauE;
	SDL_Surface* surface_vaisseauE2;
	SDL_Surface* surface_vaisseauE3;
	SDL_Surface* surface_vaisseauE4;
	SDL_Surface* surface_boss1;
	SDL_Surface* surface_boss2;
	SDL_Surface* surface_tirJ;
	SDL_Surface* surface_tirJ2;
	SDL_Surface* surface_tirE;
	SDL_Surface* surface_tirE2;
	SDL_Surface* surface_tirE3;
	SDL_Surface* surface_mur;
	//SDL_Surface* surface_score;
	SDL_Surface* surface_vie;
	SDL_Surface* surface_bonus_arme;
	SDL_Surface* surface_bonus_vie;

	Mix_Chunk *son_Tir;
	Mix_Chunk *son_MortJ;
	Mix_Music *musique_niveau1;
	Mix_Music *musique_Boss1;

} sdlJeu;

SDL_Surface *SDL_load_image(const char* filename );
void SDL_apply_surface( SDL_Surface* source, SDL_Surface* destination, int x, int y );
void sdljeuInit(sdlJeu *);
void sdljeuBoucle(sdlJeu *);
//void sdljeuLibere(sdlJeu *);
void niveau1(sdlJeu *pSdlJeu);
void sdljeuDetruit(sdlJeu *);
void pause();

#endif
